﻿// ===============================================================================
// XCI.NET 西安交通信息WinForm开发框架 2018 版权所有
// ===============================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XCI.Core;

namespace XCI.Logger
{
    /// <summary>
    /// 日志接口
    /// </summary>
    public interface ILogger
    {
        /// <summary>
        /// 记录调试消息
        /// </summary>
        /// <param name="message">消息内容</param>
        /// <param name="tag">日志标签</param>
        void Debug(string message, string tag = null);

        /// <summary>
        /// 记录普通消息
        /// </summary>
        /// <param name="message">消息内容</param>
        /// <param name="tag">日志标签</param>
        void Info(string message, string tag = null);

        /// <summary>
        /// 记录警告消息
        /// </summary>
        /// <param name="message">消息内容</param>
        /// <param name="tag">日志标签</param>
        void Warn(string message, string tag = null);

        /// <summary>
        /// 记录错误消息
        /// </summary>
        /// <param name="message">消息内容</param>
        /// <param name="tag">日志标签</param>
        void Error(string message, string tag = null);
    }
}
